package io.bdmc.modules.bss.mapper;

import io.bdmc.modules.bss.entity.DeviceAlarmRealtime;
import io.bdmc.modules.bss.model.DeviceAlarmRealtimeParam;

import org.apache.ibatis.annotations.Param;
import io.bdmc.common.utils.MyPage;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 设备报警历史记录 Mapper 接口
 * </p>
 *
 * @author 黄露
 * @since 2020-09-15
 */
public interface DeviceAlarmRealtimeMapper extends BaseMapper<DeviceAlarmRealtime> {

        MyPage<DeviceAlarmRealtime> mySelectPage(@Param("myPage") MyPage<DeviceAlarmRealtime> myPage,
                        @Param("param") DeviceAlarmRealtimeParam param);

        MyPage<DeviceAlarmRealtime> selectAllLastAlarm(@Param("myPage") MyPage<DeviceAlarmRealtime> myPage,
                        @Param("param") DeviceAlarmRealtimeParam param);

        List<DeviceAlarmRealtime> selectAllLastAlarm1(@Param("param") DeviceAlarmRealtimeParam param);

        List<DeviceAlarmRealtime> selectRealtimeAlarmList();
}
